package com.wlz.mapper;

import com.wlz.bean.PersonBean;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.special.InsertListMapper;
import tk.mybatis.mapper.provider.SpecialProvider;

import java.util.List;
//import org.apache.ibatis.annotations.Mapper;
//import tk.mybatis.mapper.common.special.InsertListMapper;
//
//
//@Mapper
//public interface PersonMapper extends InsertListMapper<PersonBean> {
//}

@org.apache.ibatis.annotations.Mapper
public interface PersonMapper extends Mapper<PersonBean>, InsertListMapper<PersonBean> {

    @Options(keyProperty = "pid",useGeneratedKeys = true)
    @InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
    int insertList(List<? extends PersonBean> recordList);
}